package com.cnplan.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cnplan.entity.SystemUser;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Administrator on 2018/4/25.
 */
public interface SystemUserMapper extends BaseMapper<SystemUser> {

    int linkUserRole(@Param("userId") Long userId, @Param("roleId") Long roleId);
    int unlinkAllUserRoles(@Param("userId") Long userId);

}
